﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <script type="text/javascript" src="../JskitLoad.js"></script>

    <script type="text/javascript" src="../JskitConfig.js"></script>

    <link type="text/css" rel="Stylesheet" href="../Reference.css" />
    <title>Validation</title>
</head>
<body>
    <p>
        在web.config中加入:</p>
    <textarea cols="" name="JskitSyntax_code" class="html">
      &lt;jedwon&gt;
          ...
          &lt;webSupport&gt;
              ...
            &lt;validation outputVar="JskitValidationData"
                  configUri="~/bin/Configuration/Validation.config"/&gt;
              ...
          &lt;/webSupport&gt;
          ...
      &lt;/jedwon&gt;
    </textarea>
    <p>
        配置文件示例</p>
     <textarea cols="" name="JskitSyntax_code" class="xml">
&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;jedwon&gt;
  &lt;validation&gt;
    &lt;form name="Test/CrudTestWithMaster.aspx" clientPrefix="CrudEO_"&gt;
      &lt;field id="ColString" type="required" pattern="^[^ ]{1,12}$"  compare="" express=""&gt;&lt;![CDATA[请输入1-12位有效字符，不能包含空格]]&gt;&lt;/field&gt;
      &lt;field id="ColNumber" type="required"&gt;&lt;![CDATA[请输入数字]]&gt;&lt;/field&gt;
      &lt;field id="ColNumber" type="regex" pattern="^[\\d]*$"&gt;&lt;![CDATA[请输入数字]]&gt;&lt;/field&gt;
      &lt;field id="ColDateTime" type="required"&gt;&lt;![CDATA[请输入日期时间]]&gt;&lt;/field&gt;
    &lt;/form&gt;
  &lt;/validation&gt;
&lt;/jedwon&gt;
     </textarea>
</body>
</html>
